package com.han.neo4jjava.core.person;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class PersonQueryService {

    private final PersonRepo personRepo;

    public List<Person> findAll() {
        return personRepo.findAll();
    }

    public List<Person> queryAllByName(String name) {
        return personRepo.queryAllByName(name);
    }
}
